<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>http</title>
    <script src="https://cdn.bootcss.com/angular.js/1.6.4/angular.min.js"></script>
    <script src="https://cdn.bootcss.com/angular.js/1.6.4/angular-sanitize.js"></script>
    <!--sanitize :/三你太子/ 净化，消毒-->

</head>
<body>

   <div ng-app="a" ng-controller="myControl">
       <!--ng-controller:控制器，可以有多个，名字不可以相同-->

       <div ng-bind-html="content"></div>
   </div>
</body>
<script>
   var  app = angular.module('a',['ngSanitize']);
    app.controller('myControl',function ($scope,$http) {
            $http({
                method:'get',
                url:'demo.html'
            }).then(function (response) {
                console.log(response);
                $scope.content = response.data;
            },function (err) {
                console.log(err);
            })
    })
</script>
</html>